﻿using Brc_PaaS.Common.Entity;
using Brc_PaaS.Common.Model.Account;
using Brc_PaaS.Common.Model.Basic;

namespace Brc_PaaS.Bll.Account
{
    public interface IAccount
    {
        /// <summary>
        /// 注册账户
        /// </summary>
        /// <param name="registerAccountDto"></param>
        /// <returns></returns>
        ResponseModel<string> RegisterAccount(RegisterAccountDto registerAccountDto);

        /// <summary>
        /// 登录账户
        /// </summary>
        /// <param name="loginCredentialDto"></param>
        /// <returns></returns>
        ResponseModel<string> Login(LoginCredentialDto loginCredentialDto);

        /// <summary>
        /// 根据账号获取用户信息
        /// </summary>
        /// <param name="loginName"></param>
        /// <returns></returns>
        ResponseModel<Bas_Account> GetAccount(string loginName);
    }
}
